//
//  RTViewModel.swift
//  MevosSwift
//
//  Created by roy on 2017/4/18.
//  Copyright © 2017年 roy. All rights reserved.
//

import UIKit
import SwiftyJSON

typealias RTViewModelSBlock = (Any)->Void
typealias RTViewModelFBlock = (Any)->Void

class RTViewModel: NSObject {
    var sBlock: RTViewModelSBlock?
    var fBlock : RTViewModelFBlock?
    
    func urlRequst(success : @escaping (_ response : [String : AnyObject])->(), failture : @escaping (_ error : Error)->()){
        NetworkRequest.shareInstance.postRequest(urlString: "http://114.55.95.75/hjpg/index.php/Appapi/shouye/shouyeImg", params: nil, success: { result in
            success(result)
            
        }, failture: {error in
                        //self.fBlock!(error)
                    }
            )



    }
    
}
